<?php
namespace App\Http\Controllers\Api;

use App\Models\User;

class TestsController extends Controller
{
    public function user()
    {
        $userId=app()->request->get('uid');
        $user=User::find($userId);
        if(!$user){
        	return invalidation('用户不存在');
        }
        return $user;
    }
}